package com.hex.ds.hdrs.period.job.dao;


import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.ds.hdrs.period.job.po.QueueJobInf;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author lwz
 * @date 2021-01-07
 * @des
 */

@Repository
public class QueueJobInfDao extends BaseDao {

    public int add(QueueJobInf queueJobInf) {
        return this.insert("com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.insert", queueJobInf);
    }

    public List<QueueJobInf> getTaskBlockNum(Map map) {
        return this.selectList(QueueJobInf.class,"com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.getTaskBlockNum",map);
    }

    public List<Map> getDependmentNum(Map map) {
        return this.selectList(Map.class,"com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.getDependmentNum",map);
    }
    public List<Map> getDependmentNum2(Map map) {
        return this.selectList(Map.class,"com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.getDependmentNum2",map);
    }
    public List<Map> getDependmentNum3(Map map) {
        return this.selectList(Map.class,"com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.getDependmentNum3",map);
    }
    public List<Map> getDependmentNum4(Map map) {
        return this.selectList(Map.class,"com.hex.ds.hdrs.period.job.dao.QueueJobInfDao.getDependmentNum4",map);
    }
}
